package top.chengdongqing.mishop.common.constants

/**
 * 正则表达式集合
 */
object RegexPatterns {
    val EMAIL = "[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+".toRegex()
    val PHONE_NUMBER: Regex = "1[3-9]\\d{9}".toRegex()
    val USERNAME: Regex = "[\\u4e00-\\u9fa5\\w]{2,20}".toRegex()
    val PASSWORD: Regex = "\\w{8,20}".toRegex()
}
